package org.example.mybatisdemo.service;

import org.example.mybatisdemo.mapper.UserInfoMapper;
import org.example.mybatisdemo.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Service
public class UserService {
    @Autowired
    private UserInfoMapper userInfoMapper;

    public List<UserInfo> queryAllUser() {
        return userInfoMapper.queryUserList();
    }
}
